package main

import (
	"core/client/clientKcp"
	"core/component/logger"
	"core/helper/util"
	"core/ini"
	"flag"
	"net/http"
	_ "net/http/pprof"
	"time"
)

func main() {
	flag.Parse()
	ini.LoadCfg("conf.ini")

	logger.SetLogFile("client"+"_"+"1", "client")
	logger.SetLogLevel("DEBUG")
	go http.ListenAndServe("localhost:6062", nil)

	util.NameMgrGetMe().Init()

	//clientTcp.RunClientTcp()
	clientKcp.RunClientKcp()
	time.Sleep(1 * time.Hour)

}
